<?php
/**
 * 小邮筒订单
 */
namespace soa\minpost\order\v1\orderPrint;

use soa\client;
class printer  extends client{
	/**
	 * 服务地址
	 * @var string
	 */
	public $service_url = 'http://mp.kuaidihelp.com/';
	/**
	 * 服务名称
	 * @var string
	 */
	protected $service_name = 'kuaidihelp_mp';

	//设置打印用户
	public function set($order_id,$uid,$platform,$extra_info = []){
		return $this->post("api/cloudPrint/order/v1/orderPrint/printer/set",compact('order_id','uid','platform','extra_info'));
	}

	//查询打印用户
	public function getPrinter($order_id){
		return $this->post("api/cloudPrint/order/v1/orderPrint/printer/getPrinter",compact('order_id'));
	}
}